home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
cardga1g
/
module1.bas
< prev
next >
Wrap
BASIC Source File
|
1997-12-12
|
516b
|
18 lines
Attribute VB_Name = "Module1"
Public Const SPI_SETDESKWALLPAPER = 20
Public Const SPIF_UPDATEINIFILE = &H1
Public Const SPIF_SENDWININICHANGE = &H2
Declare Function SystemParametersInfo Lib "user32" Alias _
"SystemParametersInfoA" (ByVal uAuction As Long, ByVal _
uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As _
Long) As Long
Sub ChangeWallpaper(ByVal fn As String)
SystemParametersInfo SPI_SETDESKWALLPAPER, 0, fn, _
SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE
End Sub